﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;

namespace WebApplication
{
    public partial class Test : System.Web.UI.Page
    {
        SysBLL bll = new SysBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var items = bll.GetAllMenus();
                this.GridView1.DataSource = items;
                this.GridView1.DataBind();
            }
        }
    }
}